package com.edu.dgut.service;

import net.minidev.json.JSONObject;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

//调整json格式
public class mapObjectService {

    @ResponseBody
    public Map<String,Object> put(Object data){
        Map<String,Object> obj = new HashMap<>();
        obj.put("code", 0);
        obj.put("msg", "success");
        obj.put("count",1000);
        obj.put("data",data);
        return obj;
    }

}
